<template>
  <div class="goodsInfo" v-if='Object.keys(detailInfo).length !== 0'>
      <div class="infoDesc">
          <div class="start">
          </div>
          <div class="desc">{{detailInfo.desc}} </div>
          <div class="end"></div>
      </div>
      <div class="infoKey">{{detailInfo.detailImage[0].key}} </div>
      <div class="infoList">
          <img v-for='(n,index) in detailInfo.detailImage[0].list' :key='index'
            @load="$emit('imgLoad')"
          :src="n" alt="">
      </div>
  </div>
</template>

<script>
export default {
    name:'detailGoodsInfo',
    props:{
        detailInfo:{
            type:Object
        }
    }
}
</script>

<style scoped>
    img{
        width: 100%;
    }
    .start,.end{
        background-color: rgb(160, 160, 160);
        height: 2px;
        width: 30vw;
        margin-left:10px ;
        margin-bottom: 20px;
    }
    .end{
        
        margin-left:63vw
    }
    .start::before{
        content: '';
        display: block;
        width: 6px;
        height: 6px;
        background-color: #000;
        transform: translateY(-100%);
    }
    .end::before{
        content: '';
        display: block;
        width: 6px;
        height: 6px;
        background-color: #000;
        
        transform: translateX(30vw) translateY(-100%);
    }
    .desc{
        margin-bottom: 20px;
        padding: 0 10px;
    }
    .infoKey{
        padding:  10px;
    }
</style>